package com.hg.chapter2.beanLife;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBeanLifeConfig {

    @Bean(initMethod = "init",destroyMethod = "destroy")
    public BeanMethod getBeanMethod(){
        return new BeanMethod();
    }
}
